#include(${CMAKE_SOURCE_DIR}/cmake/common.cmake)
## ================================== HAL聚合对象库 ==================================
## 创建一个虚拟目标来管理模块依赖，以避免C++20的module还不完善的问题
## ------ bsp ------
#set(HAL_DIR ${CMAKE_SOURCE_DIR}/HAL)
#file(GLOB_RECURSE hal_modules "${HAL_DIR}/*.ixx")
#message(STATUS "HAL:${hal_modules}")
#register_global_module(
#        NAME HAL
#        FILES ${hal_modules}
#        DEPENDS STM32_DRIVERS_OBJECT
#)
#
#
#
## ================================== Adapter聚合对象库 ==================================
#set(ADAPTER_DIR ${CMAKE_SOURCE_DIR}/Adapter)
#
## ------------ gui modules ------------
#set(GUI_DIR ${ADAPTER_DIR}/GUI)
#set(COMPOSE_DIR ${GUI_DIR}/Compose)
#set(RENDER_DIR ${GUI_DIR}/Render)
#file(GLOB_RECURSE adapter_gui_modules
#        "${GUI_DIR}/gui.ixx"
#        "${COMPOSE_DIR}/*.ixx"
#        "${RENDER_DIR}/*.ixx"
#)
## 注册 GUI 模块
#register_global_module(NAME ADAPTER_GUI FILES ${adapter_gui_modules} DEPENDS MIDDLEWARE_LVGL_OBJECT)
## ------------ xxx modules ------------
#
#
## ================================== BSP聚合对象库 ==================================
## 创建一个虚拟目标来管理模块依赖，以避免C++20的module还不完善的问题
## ------ bsp ------
#set(BSP_DIR ${CMAKE_SOURCE_DIR}/BSP)
#file(GLOB_RECURSE bsp_modules "${BSP_DIR}/*.ixx")
#register_global_module(
#        NAME BSP
#        FILES ${bsp_modules}
#        DEPENDS STM32_DRIVERS_OBJECT HAL_OBJECT
#)
#
#
#
